package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import static org.jsola.hr.example.SignUpExample.E_IMG_URL;
import static org.jsola.hr.example.SignUpExample.E_LINK;
import static org.jsola.hr.example.SignUpExample.E_SORT;
import static org.jsola.hr.example.SignUpExample.M_IMG_URL_MAX;
import static org.jsola.hr.example.SignUpExample.M_LINK_MAX;
import static org.jsola.hr.example.SignUpExample.N_IMG_URL;
import static org.jsola.hr.example.SignUpExample.N_LINK;
import static org.jsola.hr.example.SignUpExample.N_SORT;

/**
 * 公司首页报名表
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "新增【公司首页报名表】的参数")
@Data
public class SignUpAddDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_SORT, example = E_SORT)
    private Integer sort;

    @ApiModelProperty(notes = N_LINK, example = E_LINK)
    @Length(max = 500, message = M_LINK_MAX)
    private String link;

    @ApiModelProperty(notes = N_IMG_URL, example = E_IMG_URL)
    @Length(max = 500, message = M_IMG_URL_MAX)
    private String imgUrl;


}

